
import java.io.PrintWriter;
import java.util.HashMap;

class ParameterList extends Node {

	private Node formal_;
	private Node formal_list_;

	public ParameterList(Node p, Node pl) {
		formal_ = p;
		formal_list_ = pl;
	}

	public ParameterList(Node p) {
		formal_ = p;
	}

	@Override
	public void print(PrintWriter pw) {
		pw.println("Node name : ParameterList");
		// assert(formal_);
		formal_.print(pw);
		if (formal_list_ != null) {
			formal_list_.print(pw);
		}
	}
	
	public String translate(HashMap<String, PrintWriter> pws, String strPare, SymbolTable rt, String parent) {
		String key = rt.getStack().get(1);
		PrintWriter pw = pws.get(key);
		
		formal_.translate(pws, null, rt, parent);
		if (formal_list_ != null) {
			pw.print(",");
			formal_list_.translate(pws, null, rt, parent);
		}
		return null;
	}

}











